package admin

import (
	auto "beergo/app/{{ table.path }}/auto/controller"
	"beergo/app/{{ table.path }}/conf"
	"github.com/beego/beego/v2/server/web"
)

type {{ table.name }}AdminController struct {
	auto.{{ table.name }}Controller
}

func init() {
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/:id", 		&{{ table.name }}AdminController{}, "*:GetAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/info", 		&{{ table.name }}AdminController{}, "*:InfoAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/scan", 		&{{ table.name }}AdminController{}, "*:ScanAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/list", 	    &{{ table.name }}AdminController{}, "*:ListAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/update", 	&{{ table.name }}AdminController{}, "*:UpdateAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/create", 	&{{ table.name }}AdminController{}, "*:CreateAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/copy", 	    &{{ table.name }}AdminController{}, "*:CopyAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/edit", 	    &{{ table.name }}AdminController{}, "*:EditAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/delete", 	&{{ table.name }}AdminController{}, "*:DeleteAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/:id/:field", &{{ table.name }}AdminController{}, "*:SonsAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/choice", &{{ table.name }}AdminController{}, "*:ChoiceAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/category", &{{ table.name }}AdminController{}, "*:CategoryAction")
}
//func (this *{{ table.name }}AdminController) Prepare() {}
//func (this *{{ table.name }}AdminController) ListAction() {}
//func (this *{{ table.name }}AdminController) GetAction() {}
//func (this *{{ table.name }}AdminController) InfoAction() {}
//func (this *{{ table.name }}AdminController) ScanAction() {}
//func (this *{{ table.name }}AdminController) CreateAction() {}
//func (this *{{ table.name }}AdminController) UpdateAction() {}
//func (this *{{ table.name }}AdminController) CopyAction() {}
//func (this *{{ table.name }}AdminController) DeleteAction() {}
//func (this *{{ table.name }}AdminController) EditAction() {}
//func (this *{{ table.name }}AdminController) SonsAction() {}
//func (this *{{ table.name }}AdminController) ChoiceAction() {}
//func (this *{{ table.name }}AdminController) CategoryAction() {}
